package com.project.psc.controller;

import com.project.psc.bean.SupplyGoodsBean;
import com.project.psc.service.ISupplierService;
import com.project.psc.service.ISupplyGoodsService;
import com.project.vo.ResultVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("supplyGoods")
public class SupplyGoodsController {
    @Autowired
    private ISupplyGoodsService supplyGoodsService;
    @GetMapping("findAll")
    public ResultVo findAll(String pact){
        List<SupplyGoodsBean> all = supplyGoodsService.findAll(pact);
        return ResultVo.ok(all);
    }
}
